package com.huishu.tcm.util.exception;

/**
 * 自定义异常
 */
public class TcmException extends RuntimeException {
    private Integer code;

    public TcmException(TcmExceptionEnum paransExceptionEnum){
        super(paransExceptionEnum.getMsg());
        this.code = paransExceptionEnum.getCode();
    }
    public TcmException(Integer code, String msg){
        super(msg);
        this.code = code;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
